home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 7 / Amiga Format AFCD07 (Dec 1996, Issue 91).iso / screenplay / utilities / civpatcher2 / install < prev    next >
Text File  |  1996-09-20  |  2KB  |  115 lines

  1. ; CivPatcher 2 - install script
  2. ;
  3. (set cpu (+ (database "cpu")))
  4.  
  5. (if     (OR (< (getversion) 39)
  6.          (< cpu 68020)
  7.     )
  8.     (abort "Sorry, but you need at least Kick/WB 3.0 and a 68020 CPU")
  9. )
  10.  
  11. (set name
  12.          (askdir
  13.         (prompt "Where you wish to install to ? (A Drawer will be created)")
  14.         (help @askdir-help "\nA Drawer \"CivPatcher2\" will be created.")
  15.         (default "T:")
  16.          )
  17. )
  18.  
  19. (set destname
  20.     (tackon name "CivPatcher2"
  21.     )
  22. )
  23.  
  24.  
  25. (makedir destname
  26.     (prompt "")
  27.     (help @makedir-help)
  28.     (infos)
  29. )
  30.  
  31. (set @default-dest destname)
  32.  
  33. (set name (tackon destname "catalogs"))
  34.  
  35. (makedir name
  36.     (prompt "")
  37.     (help @makedir-help)
  38. )
  39.  
  40. (copyfiles
  41.     (prompt "Wich languages you wish to install ?")
  42.     (help @copyfiles-help)
  43.     (source "catalogs")
  44.     (all)
  45.     (dest name)
  46.     (confirm)
  47. )
  48.  
  49. (copyfiles
  50.     (prompt "Installing CivPatcher 2")
  51.     (help @copyfiles-help)
  52.     (source "")
  53.     (all)
  54.     (dest destname)
  55. )
  56.  
  57.  
  58. (set civin
  59.     (askdir
  60.         (prompt "Where do you save your Civilization games ?")
  61.         (help "The volume you use to save your games. It will be setup as default load dir for the CivPatcher.")
  62.         (default "SYS:")
  63.         (disk)
  64.     )
  65. )
  66.  
  67. (set civout
  68.     (askdir
  69.         (prompt "Where do you want to save your patched games ?")
  70.         (help "This can be a subdrawer, if you want to save in CivMan mode. Otherwise you must select a volume.")
  71.         (default "RAM:")
  72.         (disk)
  73.     )
  74. )
  75.  
  76. (set option
  77.     (askbool
  78.         (prompt "Do you wish to activate the CivMan option as default ?")
  79.         (help "You can change it later with a checkbox. It is only for default setting, if you start the Civpatcher")
  80.     )
  81. )
  82.  
  83. (tooltype
  84.     (prompt "")
  85.     (dest (tackon destname "Civil.2"))
  86.     (settooltype "LoadDrawer" civin)
  87.     (settooltype "SaveDrawer" civout)
  88.     (if option
  89.           (settooltype "CivMan" "TRUE")
  90.     )
  91. )
  92.  
  93. (set civname
  94.     (askdir
  95.         (prompt "Where has you Civilization installed ?")
  96.         (help "Needed for the loader-tooltypes, to start Civilization.")
  97.         (default "SYS:")
  98.     )
  99. )
  100.  
  101. (set extname
  102.     (askdir
  103.         (prompt "Where do you want to extract CivMan-files ?")
  104.         (help "Needed for loader-tooltypes. Allows you to start saved games easily.")
  105.         (default "RAM:")
  106.     )
  107. )
  108.  
  109. (tooltype
  110.     (prompt "")
  111.     (dest (tackon destname "Loader"))
  112.     (settooltype "GamePath" civname)
  113.     (settooltype "Extract2" extname)
  114. )
  115.